| API Documentation |  |

- MAIN PAGE
- NAMESPACES
- CLASSES

UnitTester.h
1 // UnitTester.h
3 //
5
6 namespace nkDebug
7 {
17 class UnitTester final
18 {
19 public :
20
21 // Functions
22 // Registering
29 static TestClass* registerTestClass (std::function<TestClass* ()> factoryFunction) ;
36 static nkMemory::BufferCast<TestClass*> getRegisteredClasses (nkMemory::StringView filter = "") ;
40 static unsigned int getRegisteredTestClassCount () ;
41
42 // Run
48 static void run (const TestRunParameters& parameters = TestRunParameters()) ;
49
50 // Utils
54 static nkMemory::BufferCast<TestClass*> getAllTests () ;
55 } ;
56 }
nkDebug::UnitTester::run
static void run(const TestRunParameters &parameters=TestRunParameters())
nkDebug::UnitTester::getRegisteredTestClassCount
static unsigned int getRegisteredTestClassCount()
nkDebug::UnitTester::registerTestClass
static TestClass * registerTestClass(std::function< TestClass *()> factoryFunction)
nkDebug::TestRunParameters
Parameters allowing to drive a test run sequence.
Definition: TestRunParameters.h:12
nkMemory::StringView
Class holding information about a string, with no ownership over the data.
Definition: StringView.h:22
nkDebug::UnitTester
Core of the component's testing capabilities.
Definition: UnitTester.h:18
nkMemory::BufferCast
Holds a Buffer and make it easy to cast the binary data.
Definition: BufferCast.h:18
nkDebug::UnitTester::getAllTests
static nkMemory::BufferCast< TestClass * > getAllTests()
nkDebug
Encompasses all API of component NilkinsDebug.
Definition: LogManager.h:7
nkDebug::TestClass
The test enabling class, allowing registration within the UnitTester.
Definition: TestClass.h:62
nkDebug::UnitTester::getRegisteredClasses
static nkMemory::BufferCast< TestClass * > getRegisteredClasses(nkMemory::StringView filter="")